using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using SMS.ServiceManager;
using digit.Core;
using SMS.UserManager;

namespace SMS.Admin
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!ClientState.IsAuthenticated)
                Response.Redirect("~/Login.aspx?session=timeout");

            if (Request.QueryString["module"] == null)
            {
                this.mainModule.LoadMember(Util.GetAppSettings("WebsiteAppPath") + "Modules/Warning.ascx");
            }
            else
            {
                string path = "Modules/" + Request.QueryString["module"] + ".ascx";
                if (File.Exists(Server.MapPath(path))) this.mainModule.LoadMember(path);
            }
        }
    }
}
